<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="meetingRoom.title"/></title>
    <meta name="heading" content="<fmt:message key='meetingRoom.heading'/>"/>
    <meta name="menu" content="UserMenu"/>
    <script type="text/javascript" src="<c:url value='/scripts/selectbox.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar-setup.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/lang/calendar-en.js'/>"></script>
</head>

<s:form name="meetingRoomForm" action="meetingRoom" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="meetingRoom.id"/>
        <s:hidden key="meetingRoom.version"/>
        <input type="hidden" name="from" value="${param.from}"/>
    </li>
    
    <li class="buttonBar">
        <s:submit key="button.save" method="save" onclick="onFormSubmit(this.form)"/>
        
    <c:if test="${param.from == 'list' and not empty meetingRoom.id}">
        <s:submit key="button.delete" method="delete" onclick="return confirmDelete('user')"/>
    </c:if>
    
        <s:submit key="button.cancel" method="cancel"/>
    </li>
    
    <s:textfield key="meetingRoom.name" cssClass="text large" required="true"/>
    <s:textfield key="meetingRoom.location" cssClass="text large" required="true"/>
    <s:textfield key="meetingRoom.telephone" cssClass="text large"/>
	<s:textarea key="meetingRoom.description" cssClass="text large"/>
    
    <li class="buttonBar bottom">
        <s:submit key="button.save" method="save" onclick="onFormSubmit(this.form)"/>

    <c:if test="${param.from == 'list' and not empty user.id}">
        <s:submit key="button.delete" method="delete" onclick="return confirmDelete('user')"/>
    </c:if>

        <s:submit key="button.cancel" method="cancel"/>
    </li>
</s:form>

<script type="text/javascript">

</script>
